import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    // 用于生成左侧的菜单
    routes: constantRoutes
  },
  mutations: {
    setRoutes(state, otherRoutes) {
      state.routes = [...constantRoutes, ...otherRoutes]
    }
  }
}
